What is three part of loop in programming language?
What is three part of loop in programming language?
207
08-Nov-2021
Mukul Goenka
09-Nov-2021Any type of programmers use loops in a programming language. There are 3 types of loops in a programming language.
These three loops have 3 parts.
1.) Initialization In this section set the value for the loop start so that the loop can be started.
2.) Condition In this part after the loop starts, the value of the loop checks a condition repeatedly, if the condition is true then will access the further statement otherwise it will break out of the loop
3.) Updation in this part accesses the statement after checking the condition, then increases or decreases the value of the loop and after updating it checks again and again until the condition becomes false.
Syntax.
Program